﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace JZElectrick {
    public partial class FinishAskForm : Form {
        public FinishAskForm() {
            InitializeComponent();
        }

        public delegate void SetSaveStateDelegate(EBServiceSavingType type);
        public SetSaveStateDelegate SetSaveStateEvent;

        private void buttonClick(object sender, EventArgs e) {
            Button btn = (Button)sender;
            if (Equals(btn, button1)) {
                SetSaveStateEvent(EBServiceSavingType.AutoLoginWhenStartUp);
            } else if (Equals(btn, button2)) {
                SetSaveStateEvent(EBServiceSavingType.AutoLoginWhenAppLaunch);
            } else if (Equals(btn, button3)) {
                SetSaveStateEvent(EBServiceSavingType.SavePassword);
            } else if (Equals(btn, button4)) {
                SetSaveStateEvent(EBServiceSavingType.None);
            }
            Close();
        }
    }
}
